import request from '@/utils/request'

// 查询附件关系列表
export function listAttachmentRelations(query) {
  return request({
    url: '/easybook/attachmentRelations/list',
    method: 'get',
    params: query
  })
}

// 查询附件关系详细
export function getAttachmentRelations(id) {
  return request({
    url: '/easybook/attachmentRelations/' + id,
    method: 'get'
  })
}

// 新增附件关系
export function addAttachmentRelations(data) {
  return request({
    url: '/easybook/attachmentRelations',
    method: 'post',
    data: data
  })
}

// 修改附件关系
export function updateAttachmentRelations(data) {
  return request({
    url: '/easybook/attachmentRelations',
    method: 'put',
    data: data
  })
}

// 删除附件关系
export function delAttachmentRelations(id) {
  return request({
    url: '/easybook/attachmentRelations/' + id,
    method: 'delete'
  })
}
